package com.four.bergain.feign;

import com.guli.common.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 2021/12/19
 * @author hxw
 */
@FeignClient("four-user")
@RequestMapping("user")
public interface UserFeginService {

    /**
     * 根据id查询用户信息
     * @param userId
     * @return
     */
    @GetMapping("/user/getUserById/{userId}")
    UserVo getUserById(@PathVariable("userId")Integer userId);
}
